<?php
require $_SERVER['DOCUMENT_ROOT'].'/../_core/common.php';

//权限验证
if( Role::init() == false ){
	exit('没有权限');
}

$db = new DB('news');
$parent_id = isset($_GET['parent_id']) ? intval($_GET['parent_id']) : 0;
$top_id = isset($_GET['top_id']) ? intval($_GET['top_id']) : 0;

//查询
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
$category_sql = 'select title,title_en,seo_keyword,seo_description,url,orders from categories where id='.$id;
$category_rs = $db->query($category_sql)->getOne();

//包含模板
require template('admin/news/category/category_edit');